import { api } from "src/boot/axios";

const request = (path, { params = {}, type = "post", option = {} }) => {
    if (type.toLowerCase() == "get") {
        return api.get(path, Object.assign(option, { params }));
    } else {
        return api.post(path, params, option);
    }
};

export const company_detail = options => {
    return request("/api/security/company_detai", options);
};

export const getDayKdata = options => {
    return request("api/security/rk", options);
};

export const getWeekKdata = options => {
    return request("api/security/zk", options);
};